VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form frmregist 
   BackColor       =   &H8000000D&
   Caption         =   "Registration"
   ClientHeight    =   2385
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5250
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   ScaleHeight     =   2385
   ScaleWidth      =   5250
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox txtBHVAN 
      Height          =   315
      Left            =   3720
      TabIndex        =   6
      Top             =   360
      Width           =   1335
   End
   Begin VB.CommandButton cmdClose 
      Caption         =   "Close"
      Height          =   375
      Left            =   3360
      TabIndex        =   5
      Top             =   1800
      Width           =   1095
   End
   Begin VB.CommandButton cmdReg 
      Caption         =   "Register"
      Height          =   375
      Left            =   960
      TabIndex        =   4
      Top             =   1800
      Width           =   1095
   End
   Begin VB.TextBox OrdNo 
      Height          =   285
      Left            =   2760
      TabIndex        =   1
      Top             =   1080
      Visible         =   0   'False
      Width           =   1215
   End
   Begin MSDataListLib.DataCombo IssNo 
      Height          =   315
      Left            =   840
      TabIndex        =   0
      Top             =   360
      Width           =   1695
      _ExtentX        =   2990
      _ExtentY        =   556
      _Version        =   393216
      ListField       =   "BHORD"
      BoundColumn     =   "BHIVN"
      Text            =   ""
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   840
      Top             =   840
      Visible         =   0   'False
      Width           =   1335
      _ExtentX        =   2355
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Issue No:"
      ForeColor       =   &H8000000E&
      Height          =   195
      Left            =   120
      TabIndex        =   3
      Top             =   480
      Width           =   675
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Invoice No:"
      ForeColor       =   &H8000000E&
      Height          =   195
      Left            =   2880
      TabIndex        =   2
      Top             =   480
      Width           =   825
   End
End
Attribute VB_Name = "frmregist"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdclose_Click()
Unload Me
End Sub

Private Sub cmdReg_Click()
If IssNo.Text = "" Then
    MsgBox "Enter Value in IssueNo !", vbCritical, "Warning"
    Exit Sub
Else
    Call BBL900(OrdNo.Text)
    Adodc1.Refresh
    IssNo.Text = ""
    txtBHVAN = ""
End If
End Sub
Private Sub Form_Load()
Adodc1.ConnectionString = ConnectString
Adodc1.CommandTimeout = 10
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "SELECT BHIVN,BHVAN,BHORD from BBH  WHERE   (BHSTT = '2')"
Adodc1.Refresh
Set IssNo.RowSource = Adodc1
End Sub
Private Sub IssNo_Change()
    OrdNo.Text = IssNo.BoundText
    Dim Rst As Recordset
    Set Rst = DBconn.Execute("Select BHVAN FROM BBH WHERE BHIVN='" & IssNo.BoundText & "'")
    If Not Rst.EOF Then
        txtBHVAN = Rst!BHVAN
    End If
End Sub
